int x=100;
int y=100;
void setup() {
  size(640, 360);
  noSmooth();
  fill(126);
  background(102);
}

void draw(){
  if(keyPressed){
    if(keyCode == RIGHT){
      x++;
    }
  }
  rect(x,y, 20,40);
}

void keyTyped(){
  println("key="+key);
}

